package g11.model;

import java.io.Serializable;

public class Visitation implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2235938345352854782L;
	private Integer visitationId;
	private Integer currentVersion;
	private Appointment appointment;

	public Integer getVisitationId() {
		return visitationId;
	}

	public void setVisitationId(Integer visitationId) {
		this.visitationId = visitationId;
	}

	public Integer getCurrentVersion() {
		return currentVersion;
	}

	public void setCurrentVersion(Integer currentVersion) {
		this.currentVersion = currentVersion;
	}

	public Appointment getAppointment() {
		return appointment;
	}

	public void setAppointment(Appointment appointment) {
		this.appointment = appointment;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public boolean equals(Object obj) {
		/*
		 * add by Fern
		 */
		Visitation other = (Visitation) obj;
		if (this.visitationId == other.visitationId) {
			return true;
		} else

			return false;
	}

	@Override
	public String toString() {
		return "Visitation [visitationId=" + visitationId + ", currentVersion="
				+ currentVersion + ", appointment=" + appointment + "]";
	}

}
